# encoding: utf-8
# @Author: zsl
# @Time  : 2024/10/21 23:00
# @Desc : 复制列表，可以创建一个包含整个列表的切片，方法是同时省略起始索引和终止索引（[:]）
my_foods=['pizza','falafel','carrot cake']
friend_foods=my_foods[:]

my_foods.append('cannoli')
friend_foods.append('ice cream')

print("my favorite food are:")
print(my_foods)

print("\nMy friend's favorite foods are:")
print(friend_foods)
